/**
 * 该模块用于 `mock` 模拟数据
 */
import Mock from 'mockjs'

import floor from './floor.json'

import swiper from './swiper.json'

import address from './address.json'
// 主页轮播图数据
Mock.mock('https://www.test.com/swiper', 'get', {
  code: 200,
  data: swiper,
  message: '成功',
  ok: true
})
// 主页楼层数据
Mock.mock('https://www.test.com/floor', 'get', {
  code: 200,
  data: floor,
  message: '成功',
  ok: true
})

Mock.mock('https://www.test.com/address', 'get', {
  code: 200,
  data: address,
  message: '成功',
  ok: true
})
